﻿<c:WindowExt x:Class="personalplaner.gui.stamm.windows.DienstZeitWizard"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:conv="clr-namespace:personalplaner.common.converters;assembly=personalplaner.common"
        xmlns:c="clr-namespace:personalplaner.common.controls;assembly=personalplaner.common"
        xmlns:vm="clr-namespace:personalplaner.common.mvvm.factory;assembly=personalplaner.common"
        xmlns:fac="clr-namespace:personalplaner.gui.stamm.viewmodels.factories"
        vm:ViewModelLoader.FactoryType="{x:Type fac:DienstZeitDialogModelFactory}"
        ShowInTaskbar="False"
        WindowStartupLocation="CenterOwner"
         Height="400" Width="600" Foreground="#E1000000" >

    <Window.Background>
        <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
            <LinearGradientBrush.GradientStops>
                <GradientStop Color="White" Offset="0"/>
                <GradientStop Color="White" Offset="0.6"/>
                <GradientStop Color="#FFEDEDED" Offset="1"/>
            </LinearGradientBrush.GradientStops>
        </LinearGradientBrush>
    </Window.Background>
    
    <Control.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/personalplaner.common;component/resources/CommonStyles.xaml"/>
                <ResourceDictionary Source="/personalplaner.common;component/resources/styles/WhiteStyleTemplates.xaml"/>
                <ResourceDictionary>
                    <BooleanToVisibilityConverter x:Key="boolVisConv"/>
                    <conv:BoolToInvertVisibilityConverter x:Key="boolInvVisConv"/>
                </ResourceDictionary>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Control.Resources>
    
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>

        <TextBlock Text="Dienst Zeit" FontSize="22" FontWeight="Thin" Foreground="#E1000000" Margin="50,-5,0,15"/>

        <ContentControl Content="{Binding SelectedView}" Grid.Row="1" Margin="20,0,20,0"/>
        
        <StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,20,40,20">
            <Button MinWidth="60" Margin="5" Command="{Binding PreviousCommand}">
                <TextBlock Text="&lt;" FontWeight="ExtraBold" VerticalAlignment="Center"/>
            </Button>
            <Button MinWidth="60" Margin="5" Command="{Binding NextCommand}" Visibility="{Binding IsEndOfWizard, Converter={StaticResource boolInvVisConv}}">
                <TextBlock Text="&gt;" FontWeight="ExtraBold" VerticalAlignment="Center"/>
            </Button>
            <Button MinWidth="60" Margin="5" IsDefault="True" 
                    Command="{Binding OkCommand}" Visibility="{Binding IsEndOfWizard, Converter={StaticResource boolVisConv}}">
                <TextBlock Text="OK"/>
            </Button>
            <Button MinWidth="60" Margin="5" IsCancel="True" 
                    Command="{Binding CancelCommand}">
                <TextBlock Text="Abbrechen"/>
            </Button>
        </StackPanel>
    </Grid>
</c:WindowExt>
